MediaPicker

data class MediaPicker(val types: Set<NavigationSpec.MediaPicker.Type>, val delegate: <Error class: unknown class>? = null, val settings: NavigationSpec.MediaPicker.Settings = Settings(), val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MPMediaPickerController to the parent

Parameters

types

the set of MediaPicker.Type

delegate

the MPMediaPickerControllerDelegateProtocol added to the MPMediaPickerController

settings

the MediaPicker.Settings to configure the MPMediaPickerController

animated

Specifies whether transition should be animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(types: Set<NavigationSpec.MediaPicker.Type>, delegate: <Error class: unknown class>? = null, settings: NavigationSpec.MediaPicker.Settings = Settings(), animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard
data class Settings(val allowsPickingMultipleItems: Boolean = false, val showsCloudItems: Boolean = true, val prompt: String? = null, val showsItemsWithProtectedAssets: Boolean = true)

Settings to configure a MPMediaPickerController

Link copied to clipboard

Properties

Link copied to clipboard
val animated: Boolean = false
Link copied to clipboard
val completion: () -> Unit? = null
Link copied to clipboard
val delegate: <Error class: unknown class>? = null
Link copied to clipboard
Link copied to clipboard